
package com.quartet.utils.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * <p>
 * 状态类型
 * </p>
 *
 * @author Zheng Jie
 * @date 2020-05-07
 */
@Getter
@AllArgsConstructor
public enum StatusTypeEnum {

    ALARM("1", "报警"),
    POSITION("2", "位置");
    private final String value;
    private final String description;

    public static StatusTypeEnum find(String val) {
        for (StatusTypeEnum dataScopeEnum : StatusTypeEnum.values()) {
            if (val.equals(dataScopeEnum.getValue())) {
                return dataScopeEnum;
            }
        }
        return null;
    }

}
